package com.lin.activity;

import java.util.ArrayList;

import com.lin.fragments.SuperFriendDynamicFragment;
import com.lin.fragments.SuperFriendsFragment;
import com.lin.views.MyFragmentAdapter;
import com.yunfeng.supercall.R;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;

public class TestActivity extends FragmentActivity {

	private ViewPager mViewPager;

	@Override
	protected void onCreate(Bundle arg0) {
		// TODO Auto-generated method stub
		super.onCreate(arg0);
		setContentView(R.layout.activity_viewpager);
		mViewPager = (ViewPager) findViewById(R.id.mainViewPager);
		
		SuperFriendsFragment mSuperFriendDynamicFansFragment1 = new SuperFriendsFragment();
		ArrayList<Fragment> mFragments1 = new ArrayList<Fragment>();
		mFragments1.add(mSuperFriendDynamicFansFragment1);
		MyFragmentAdapter mFragmentAdapter = new MyFragmentAdapter(getSupportFragmentManager(),
				mFragments1);
		
		mViewPager.setAdapter(mFragmentAdapter);
	}
	
}